//
//  HBSearchFooterCell.m
//  HeartBeat
//
//  Created by karong on 2023/8/25.
//

#import "HBSearchFooterCell.h"
@interface HBSearchFooterCell ()
@property (weak, nonatomic) IBOutlet UIImageView *hotImageView;
@property (weak, nonatomic) IBOutlet UILabel *rankLabel;
@end

@implementation HBSearchFooterCell
- (void)setDataWithObject:(HBNovelModel *)object index:(NSInteger)index {
    [super setDataWithObject:object];
    self.rankLabel.text = SF(@"%ld", index + 1);
    self.rankLabel.textColor = (index > 2)?UIColor.font_gray_999999:[UIColor colorFromHexRGB:@"FA3A2E"];
    self.hotImageView.hidden = index > 2;
}
@end
